package com.xbongbong.paas.pojo.workflow.nodes.vo;

import com.xbongbong.paas.pojo.workflow.settings.vo.WorkflowOperationsVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/05/28 17:14
 */
@Getter
@Setter
@ToString
public class UpdateRecordNodeVO implements Serializable {
    private static final long serialVersionUID = -3655729825262034778L;

    /**
     * 更新的对象的工作节点id
     */
    private Long workflowNodeId;

    private Long formId;

    private Integer saasMark;

    private Integer businessType;

    private String nodeName;

    private String formName;

    private Integer delete;

    /**
     * 字段是否是触发节点字段的标识，0:不是；1:是
     *
     */
    private Integer triggerNodeFlag;
    /**
     * 插入字段的json
     */
    private List<WorkflowOperationsVO> operations;
    /**
     * 更新方式：1为仅更新；2：更新和新增
     * 当为2时，则表示可以对子表单进行插入
     */
    private Integer updateMethod;

    /**
     * 触发表单的数据来源是编辑前还是编辑后；编辑前：0；编辑后：1
     */
    private Integer editedData;


    public UpdateRecordNodeVO() {
    }

    public UpdateRecordNodeVO(Integer editedData, Long workflowNodeId, Long formId, Integer saasMark, Integer businessType, String nodeName, String formName, Integer delete, Integer triggerNodeFlag, Integer updateMethod, List<WorkflowOperationsVO> operations) {
        this.editedData = editedData;
        this.workflowNodeId = workflowNodeId;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.delete = delete;
        this.nodeName = nodeName;
        this.formName = formName;
        this.triggerNodeFlag = triggerNodeFlag;
        this.updateMethod = updateMethod;
        this.operations = operations;
    }
}
